import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase = "DBshop016_删除前台侧边设置"
# 1.点击“删除”按钮，确定删除，删除成功。；删除成功前台侧边设置
firefox = openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox, "商品管理", "管理分类","前台侧边设置")
firefox.find_element_by_link_text("删除").click()
firefox.switch_to.alert.accept()
# 断言
if firefox.find_element_by_xpath("//td").text!="网页很好看":
    writeLog("%s 测试通过" % testCase)
else:
    writeLog("%s 测试失败" % testCase)
firefox.quit()


